<?php
require_once ("header.php");
?>
<div class="inner">
    <h2><?php echo COMPANY; ?></h2>
</div><!-- .inner -->
<div class="line">
    Line
</div><!-- .line -->
<div class="inner">
    <p>
        Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    </p>
</div><!-- .inner -->
<div class="line">
    Line
</div><!-- .line -->
<div class="clearfix">
    <div id="contact-form">
        <div class="inner clearfix">
            <?php
            require_once ('sendmail.php');
            ?>
            <?php echo $error; ?>
            <?php if( $displayForm ) :
            ?>
            <form action="" method="post">                
                <input type="text" name="name" id="name" class="input" value="<?php echo ( isset($name) ) ? $name : 'სახელი, გვარი' ?>" />
                <input type="text" name="phone" id="phone" class="input" value="<?php echo ( isset($phone) ) ? $phone : 'ტელეფონი' ?>" />
                <input type="text" name="email" id="email" class="input" value="<?php echo ( isset($email) ) ? $email : 'ელფოსტა' ?>" />
                <input type="text" name="subject" id="subject" class="input input-full" value="<?php echo ( isset($subject) ) ? $subject : 'თემა' ?>" />
                <select name="" id="select-half" class="custom-select">
                    <option value="">მარკეტინგის დეპარტამენტი</option>
                    <option value="">ძმობის დეპარტამენტი</option>
                    <option value="">სიყვარულის დეპარტამენტი</option>
                </select>
                <textarea name="message" id="message" cols="30" rows="10" class="textarea textarea-full"><?php echo ( isset($message) ) ? $message : '' ?></textarea>    
                <div class="field-container clearfix">
                    <div class="block block-1-2">
                        <input type="checkbox" name="copy" id="copy" class="checkbox custom-checkbox" value="true" <?php echo ( isset( $send ) && $send == true ) ? 'checked="checked"' : ''; ?> />
                        <label for="copy">ასლის გამოგზავნა</label>
                    </div><!-- .block -->
                    <div class="block block-1-2">
                        <input type="submit" value="გაგზავნა" name="send" id="send" class="send-btn" title="გაგზავნა" title="გაგზავნა" />
                    </div><!-- .block -->
                </div><!-- .field-container -->
            </form>
            <?php else : ?>
            <div class="success">
                <p>
                    გმადლობთ, თქვენი შეტყობინება გაგზავნილია.
                </p>
            </div>
            <?php endif; ?>
        </div><!-- .inner -->
    </div><!-- #contact-form -->
    <div id="map-container">
        <a href="#" id="map-btn" class="open" title="რუკის გადიდება">რუკის გადიდება</a>
        <iframe src="map.php" frameborder="0" height="100%"></iframe>
    </div><!-- #map-container -->
</div><!-- .clearfix -->

<?php
    require_once ("footer.php");
